<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form>
       请输入要删除的用户名：<input type="text" id="uu"/>
       <input type="button" value="确认" onclick="delect()"/>
    </form>
    <script src="jquery-3.6.0min.js"></script>
    <script>
        function delect(){
            var u=$("#uu").val();
            $.ajax({
                url:"http://127.0.0.1:8080/delect",
                type:"get",
                data:{
                    username:u
                    
                },
                dataType:"json",
                success:function(data){
                    console.log("data",data);
                },
                error:function(err){
                    console.log("err",err);
                }
            })
        }
    </script>
</body>
</html>